/*!
 * \file GapEventMediaTransmissionFinishedInd.h
 * \brief Event carrying message GapMediaTransmissionFinishedInd
 */

#ifndef SGW_GAP_EVENT_MEDIA_TRANS_FINISHED_IND_H
#define SGW_GAP_EVENT_MEDIA_TRANS_FINISHED_IND_H

#include "EventData.h"
#include "GapGlobals.h"
#include "GAP.pb.h"

namespace tsc
{
namespace sgw
{

using GatewayApplicationPart::GapMediaTransmissionFinishedInd;

/**
 * Event indicating end of media transmission between MGW and client
 */
class GapEventMediaTransmissionFinishedInd : public common::EventData
{
public:

    GapEventMediaTransmissionFinishedInd(
            GapMediaTransmissionFinishedInd& transFinishedInd) :
		EventData(GAP_MEDIA_TRANSMISSION_END),
		mConnectionId(transFinishedInd.connectionid())
	{

	}

	virtual ~GapEventMediaTransmissionFinishedInd()
	{

	}

	uint32_t getConnectionId() const
	{
		return mConnectionId;
	}

private:
	uint32_t mConnectionId;
};

} // namespace sgw
} // namespace tsc

#endif // SGW_GAP_EVENT_MEDIA_TRANS_FINISHED_IND_H
